public class Trangile {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {

            for (int j = 5; j >0; j--) {
                System.out.print("-");
            }

            for (int j =  i +1; j < 5; j++) {
                System.out.println(" *");
            }
        }
    }
}
